<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app"></div>
    
</body>

<script src="./js/vue.js"></script>
<script>

    function Demo() {
        this.a = 1;
        this.b = 2;
    }

    const o1 = new Demo()

    console.log(o1);
    console.log(Demo.prototype === o1.__proto__); // true

    Demo.prototype.x = 99;
    console.log(o1.__proto__)
    console.log(o1)

    const c1 = Vue.extend({
        
    })

    const vm = new Vue({
        el: '#app',
        data: {
            
        },
        components: {
            c1: c1
        }
    })

    Vue.prototype.ahh = '幽默双刀男';
    console.log(c1.prototype.ahh); 
    console.log(c1.prototype.ahh === Vue.prototype.ahh);
</script>
</html>